app=$1
mkdir -p /app/java/$app

scp -r root@thc-dev:/app/java/$app/*.jar  /app/java/$app/

if [ "$2" = "lib" ]; then
	rm -rf /app/java/$app/lib
   scp -r root@thc-dev:/app/java/$app/lib  /app/java/$app/
fi

cd  /app/java
bash run-17.sh $app